#ifndef __INODEBLOCK_H__
#define	__INODEBLOCK_H__


#include "inode.h"
#include "block.h"
#include "types.h"
#include <vector>


#define INODEBLOCK_OFFSET 1024
#define INODEBLOCK_SIZE 512
#define INODELIST_SIZE 8
#define INODE_SIZE 64

struct inode_block_t
{
    inode_t inodes[INODELIST_SIZE][INODE_SIZE];
};



class InodeBlock : public Block
{
	private:
		inode_block_t * inodeBlock;
		std::vector<Inode*>* inodes;

	public:
		InodeBlock(FILE*, unsigned long);
		virtual ~InodeBlock();

		void loadInodes();
		std::vector<Inode*>* getInodes() { return inodes; }

		virtual void print();
};


#endif

